package com.yunhe.authority.repository.base;

import com.yunhe.authority.domain.base.StationType;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface StationTypeRepository extends Neo4jRepository<StationType, Long> {
    /**
     * 根据代码获得Site类型对象
     * @param code 代码
     */
    StationType findByCode(Long code);

    /**
     * 根据编号获得站点类型对象
     * @param name 编号
     */
    StationType findByName(String name);
}
